package com.pda.yuanjing.pages.sybz;

import com.pda.yuanjing.beanout.BDBatchBeanOut;
import com.pda.yuanjing.beanout.BDBeanOut;
import com.pda.yuanjing.beanout.BDMXBeanOut;
import com.public_module.basemvp.present.BasePresenter;

public class PagePresent extends BasePresenter<PageModel, PageView> implements PageModel.CallBack {

    public void queryBD() {
        view.showProgress();
        model.queryBD(this);
    }
    public void queryBDMX(String id){
        view.showProgress();
        model.queryBDMX(id,this);
    }

    public void saveFormList(String id, BDMXBeanOut bdmxBeanOut){
        view.showProgress();
        model.saveFormList(id,bdmxBeanOut,this);
    }

    @Override
    public void ontip(String str) {
        if(view==null){
            return;
        }
        view.hideProgress();
        view.tip(str);
    }

    @Override
    public void ontipBD(BDBeanOut bdBeanOut) {
        if(view==null){
            return;
        }
        view.hideProgress();
        view.tipBD(bdBeanOut);
    }

    @Override
    public void ontipBDMX(BDMXBeanOut bdmxBeanOut) {
        if(view==null){
            return;
        }
        view.hideProgress();
        view.tipBDMX(bdmxBeanOut);
    }

    @Override
    public void ontipBDBatch(BDBatchBeanOut bdBatchBeanOut) {
        if(view==null){
            return;
        }
        view.hideProgress();
        view.tipBDBatch(bdBatchBeanOut);
    }
}